﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WooCoo.Data;

namespace WooCoo.ObjectModel
{
    /// <summary>
    /// 实体关系联系接口
    /// </summary>
    public interface IEntityOrList
    {
        /// <summary>
        /// 返回父对象
        /// </summary>
        IEntityOrList Parent { get; }
        /// <summary>
        /// 设罢父对象
        /// </summary>
        /// <param name="parent"></param>
        void SetParent(IEntityOrList parent);
        /// <summary>
        /// 从父对象中删除自身,如果自身无父对象，则认为删除自身
        /// </summary>
        void DeleteChild();
        /// <summary>
        /// 获取其对应的仓库
        /// </summary>
        /// <returns></returns>
        //IRepository GetDataRepository(string configName);
    }
}
